home *** CD-ROM | disk | FTP | other *** search
- Path: grafix.xs4all.nl!john.hendrikx
- Date: Sun, 21 Jan 96 18:27:36 GMT+1
- Newsgroups: comp.sys.amiga.misc
- Distribution: world
- Subject: Re: AFS speed
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
- Message-ID: <john.hendrikx.482l@grafix.xs4all.nl>
- Organization: Grafix Attack BBS Holland
-
- In a message of 17 Jan 96 Mark Marin wrote to All:
-
- MM> I have read that if you have a few big files - AFS wastes space (sets
- MM> up directory space even if it's not needed). OTOH if you have MANY
- MM> small files, you fill up the directory space. So even though you have
- MM> space on the drive, it's full as far as AFS is concerned. Can anyone
- MM> confirm or deny this?
-
- Yes, that's true, with just a few big files on it AFS wastes about 2-10% of
- space (it depends on how big your partition is, it seems to waste less space on
- larger partitions (relatively that is)).
-
- With lots of small files (newsgroup messages for example) AFS indeed can report
- the disk being full while it really isn't because it ran out of
- bookkeeping-space. How fast this happens depends on things like how long the
- filenames are (and the size of the filenote, if you use it).
-
- Most people will probably never run into this limit though.
-
- MM> For most things AFS saves space since it isn't forced to always use
- MM> multiples of 512 bytes/block. I guess two (or more?) files can share
- MM> one block. SOunds interesting - how well does it work?
-
- AFS can store multiple File-Headers into the same block, depending on the
- length of the filename and the filenote this can range from about 7-30+ entries
- in one block (1024 bytes). A File-Header is nothing more than a piece of info
- which tells you the size of the file, the name, the filenote and some other
- stuff (like protection bits, the date it was last modified and so on).
-
- AFS does use 512 bytes/block though, although it doubles this into 1024
- bytes/block for storing the directory info (probably for speed-reasons or more
- likely a left-over from the old floppy days). It doesn't (like some people
- claim) use pieces of blocks which aren't used to store say a small piece of a
- file's data. It only does this for the file-headers (and dir-headers) as I
- explained above (and this is limited to file and dir-headers of the same
- directory only).
-
- Grtz John
- -- Via Xenolink 1.985B3, XenolinkUUCP 1.1
-